FrameLib  2.0
DSP processing with frames of arbitrary timing and length
FrameLib_GlobalAllocator Class Reference

a global threadsafe memory allocator suitable for realtime usage. More...

#include <FrameLib_Memory.h>

Classes

class  Pruner
 an RAII utility for repeated deallocation with only a single lock. More...
 

Public Member Functions

 FrameLib_GlobalAllocator (FrameLib_ErrorReporter &errorReporter)
 
 ~FrameLib_GlobalAllocator ()
 
 FrameLib_GlobalAllocator (const FrameLib_GlobalAllocator &)=delete
 
FrameLib_GlobalAllocatoroperator= (const FrameLib_GlobalAllocator &)=delete
 
void * alloc (size_t size)
 
void dealloc (void *ptr)
 

Static Public Member Functions

static size_t getAlignment ()
 
static size_t alignSize (size_t x)
 

Detailed Description

a global threadsafe memory allocator suitable for realtime usage.

Constructor & Destructor Documentation

◆ FrameLib_GlobalAllocator() [1/2]

FrameLib_GlobalAllocator::FrameLib_GlobalAllocator ( FrameLib_ErrorReporter errorReporter)
inline

◆ ~FrameLib_GlobalAllocator()

FrameLib_GlobalAllocator::~FrameLib_GlobalAllocator ( )
inline

◆ FrameLib_GlobalAllocator() [2/2]

FrameLib_GlobalAllocator::FrameLib_GlobalAllocator ( const FrameLib_GlobalAllocator )
delete

Member Function Documentation

◆ alignSize()

size_t FrameLib_GlobalAllocator::alignSize ( size_t  x)
static

◆ alloc()

void * FrameLib_GlobalAllocator::alloc ( size_t  size)

◆ dealloc()

void FrameLib_GlobalAllocator::dealloc ( void *  ptr)

◆ getAlignment()

size_t FrameLib_GlobalAllocator::getAlignment ( )
static

◆ operator=()

FrameLib_GlobalAllocator& FrameLib_GlobalAllocator::operator= ( const FrameLib_GlobalAllocator )
delete

The documentation for this class was generated from the following files: